/**
  **************************************************************************************
  * @file    REG_RCU.h
  * @brief   RCU Head File
  *
  * @version V0.01
  * @date    12/5/2018
  * @author  Eastsoft MCU Software Team
  * @note
  *
  * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd. ALL rights reserved.
  *
  **************************************************************************************
  */

#ifndef __RCU_H__
#define __RCU_H__


/******************************************************************************/
/*                              设备特殊寄存器结构定义                        */
/******************************************************************************/

/*   允许匿名结构和匿名联合    */
/* #pragma anon_unions */

/****************** Bit definition for RCU_CON register ************************/

#define  RCU_CON_SWRDY_POS  24U 
#define  RCU_CON_SWRDY_MSK  BIT(RCU_CON_SWRDY_POS)

#define  RCU_CON_CSSFLG_POS  23U 
#define  RCU_CON_CSSFLG_MSK  BIT(RCU_CON_CSSFLG_POS)

#define  RCU_CON_PLL1RDY_POS  21U 
#define  RCU_CON_PLL1RDY_MSK  BIT(RCU_CON_PLL1RDY_POS)

#define  RCU_CON_PLL0RDY_POS  20U 
#define  RCU_CON_PLL0RDY_MSK  BIT(RCU_CON_PLL0RDY_POS)

#define  RCU_CON_LOSCRDY_POS  19U 
#define  RCU_CON_LOSCRDY_MSK  BIT(RCU_CON_LOSCRDY_POS)

#define  RCU_CON_LRCRDY_POS  18U 
#define  RCU_CON_LRCRDY_MSK  BIT(RCU_CON_LRCRDY_POS)

#define  RCU_CON_HOSCRDY_POS  17U 
#define  RCU_CON_HOSCRDY_MSK  BIT(RCU_CON_HOSCRDY_POS)

#define  RCU_CON_HRCRDY_POS  16U 
#define  RCU_CON_HRCRDY_MSK  BIT(RCU_CON_HRCRDY_POS)

#define  RCU_CON_CSSON_POS  7U 
#define  RCU_CON_CSSON_MSK  BIT(RCU_CON_CSSON_POS)

#define  RCU_CON_PLL1ON_POS  5U 
#define  RCU_CON_PLL1ON_MSK  BIT(RCU_CON_PLL1ON_POS)

#define  RCU_CON_PLL0ON_POS  4U 
#define  RCU_CON_PLL0ON_MSK  BIT(RCU_CON_PLL0ON_POS)

#define  RCU_CON_LOSCON_POS  3U 
#define  RCU_CON_LOSCON_MSK  BIT(RCU_CON_LOSCON_POS)

#define  RCU_CON_LRCON_POS  2U 
#define  RCU_CON_LRCON_MSK  BIT(RCU_CON_LRCON_POS)

#define  RCU_CON_HOSCON_POS  1U 
#define  RCU_CON_HOSCON_MSK  BIT(RCU_CON_HOSCON_POS)

#define  RCU_CON_HRCON_POS  0U 
#define  RCU_CON_HRCON_MSK  BIT(RCU_CON_HRCON_POS)

/****************** Bit definition for RCU_CFG register ************************/

#define  RCU_CFG_CKCFG_POS  31U 
#define  RCU_CFG_CKCFG_MSK  BIT(RCU_CFG_CKCFG_POS)

#define  RCU_CFG_MPRE_POSS  28U 
#define  RCU_CFG_MPRE_POSE  30U 
#define  RCU_CFG_MPRE_MSK  BITS(RCU_CFG_MPRE_POSS,RCU_CFG_MPRE_POSE)

#define  RCU_CFG_MSW_POSS  24U 
#define  RCU_CFG_MSW_POSE  27U 
#define  RCU_CFG_MSW_MSK  BITS(RCU_CFG_MSW_POSS,RCU_CFG_MSW_POSE)

#define  RCU_CFG_PLLMUL_POSS  17U 
#define  RCU_CFG_PLLMUL_POSE  21U 
#define  RCU_CFG_PLLMUL_MSK  BITS(RCU_CFG_PLLMUL_POSS,RCU_CFG_PLLMUL_POSE)

#define  RCU_CFG_PLLSRC_POS  16U 
#define  RCU_CFG_PLLSRC_MSK  BIT(RCU_CFG_PLLSRC_POS)

#define  RCU_CFG_HOSCDIV_POSS  12U 
#define  RCU_CFG_HOSCDIV_POSE  14U 
#define  RCU_CFG_HOSCDIV_MSK  BITS(RCU_CFG_HOSCDIV_POSS,RCU_CFG_HOSCDIV_POSE)

#define  RCU_CFG_PPRE_POSS  8U 
#define  RCU_CFG_PPRE_POSE  10U 
#define  RCU_CFG_PPRE_MSK  BITS(RCU_CFG_PPRE_POSS,RCU_CFG_PPRE_POSE)

#define  RCU_CFG_HPRE_POSS  4U 
#define  RCU_CFG_HPRE_POSE  7U 
#define  RCU_CFG_HPRE_MSK  BITS(RCU_CFG_HPRE_POSS,RCU_CFG_HPRE_POSE)

#define  RCU_CFG_SW_POSS  0U 
#define  RCU_CFG_SW_POSE  2U 
#define  RCU_CFG_SW_MSK  BITS(RCU_CFG_SW_POSS,RCU_CFG_SW_POSE)

/****************** Bit definition for RCU_STCALIB register ************************/

#define  RCU_STCALIB_SKEW_POS  30U 
#define  RCU_STCALIB_SKEW_MSK  BIT(RCU_STCALIB_SKEW_POS)

#define  RCU_STCALIB_TENMS_POSS  0U 
#define  RCU_STCALIB_TENMS_POSE  23U 
#define  RCU_STCALIB_TENMS_MSK  BITS(RCU_STCALIB_TENMS_POSS,RCU_STCALIB_TENMS_POSE)

/****************** Bit definition for RCU_PSCK register ************************/

#define  RCU_PSCK_I2S2CKSL_POSS  2U 
#define  RCU_PSCK_I2S2CKSL_POSE  3U 
#define  RCU_PSCK_I2S2CKSL_MSK  BITS(RCU_PSCK_I2S2CKSL_POSS,RCU_PSCK_I2S2CKSL_POSE)

#define  RCU_PSCK_I2S1CKSL_POSS  0U 
#define  RCU_PSCK_I2S1CKSL_POSE  1U 
#define  RCU_PSCK_I2S1CKSL_MSK  BITS(RCU_PSCK_I2S1CKSL_POSS,RCU_PSCK_I2S1CKSL_POSE)

/****************** Bit definition for RCU_AHBRST register ************************/

#define  RCU_AHBRST_GPDEN_POS  19U 
#define  RCU_AHBRST_GPDEN_MSK  BIT(RCU_AHBRST_GPDEN_POS)

#define  RCU_AHBRST_GPCEN_POS  18U 
#define  RCU_AHBRST_GPCEN_MSK  BIT(RCU_AHBRST_GPCEN_POS)

#define  RCU_AHBRST_GPBEN_POS  17U 
#define  RCU_AHBRST_GPBEN_MSK  BIT(RCU_AHBRST_GPBEN_POS)

#define  RCU_AHBRST_GPAEN_POS  16U 
#define  RCU_AHBRST_GPAEN_MSK  BIT(RCU_AHBRST_GPAEN_POS)

#define  RCU_AHBRST_HDIVEN_POS  15U 
#define  RCU_AHBRST_HDIVEN_MSK  BIT(RCU_AHBRST_HDIVEN_POS)

#define  RCU_AHBRST_USBEN_POS  14U 
#define  RCU_AHBRST_USBEN_MSK  BIT(RCU_AHBRST_USBEN_POS)

#define  RCU_AHBRST_AESEN_POS  13U 
#define  RCU_AHBRST_AESEN_MSK  BIT(RCU_AHBRST_AESEN_POS)

#define  RCU_AHBRST_CRCEN_POS  12U 
#define  RCU_AHBRST_CRCEN_MSK  BIT(RCU_AHBRST_CRCEN_POS)

#define  RCU_AHBRST_RTCEN_POS  6U 
#define  RCU_AHBRST_RTCEN_MSK  BIT(RCU_AHBRST_RTCEN_POS)

#define  RCU_AHBRST_DMA1EN_POS  0U 
#define  RCU_AHBRST_DMA1EN_MSK  BIT(RCU_AHBRST_DMA1EN_POS)

/****************** Bit definition for RCU_APB1RST register ************************/

#define  RCU_APB1RST_DACEN_POS  23U 
#define  RCU_APB1RST_DACEN_MSK  BIT(RCU_APB1RST_DACEN_POS)

#define  RCU_APB1RST_I2C2EN_POS  22U 
#define  RCU_APB1RST_I2C2EN_MSK  BIT(RCU_APB1RST_I2C2EN_POS)

#define  RCU_APB1RST_I2C1EN_POS  21U 
#define  RCU_APB1RST_I2C1EN_MSK  BIT(RCU_APB1RST_I2C1EN_POS)

#define  RCU_APB1RST_SUART2EN_POS  20U 
#define  RCU_APB1RST_SUART2EN_MSK  BIT(RCU_APB1RST_SUART2EN_POS)

#define  RCU_APB1RST_SUART1EN_POS  19U 
#define  RCU_APB1RST_SUART1EN_MSK  BIT(RCU_APB1RST_SUART1EN_POS)

#define  RCU_APB1RST_UART3EN_POS  18U 
#define  RCU_APB1RST_UART3EN_MSK  BIT(RCU_APB1RST_UART3EN_POS)

#define  RCU_APB1RST_UART2EN_POS  17U 
#define  RCU_APB1RST_UART2EN_MSK  BIT(RCU_APB1RST_UART2EN_POS)

#define  RCU_APB1RST_SPI2EN_POS  14U 
#define  RCU_APB1RST_SPI2EN_MSK  BIT(RCU_APB1RST_SPI2EN_POS)

#define  RCU_APB1RST_IWDTEN_POS  12U 
#define  RCU_APB1RST_IWDTEN_MSK  BIT(RCU_APB1RST_IWDTEN_POS)

#define  RCU_APB1RST_WWDTEN_POS  11U 
#define  RCU_APB1RST_WWDTEN_MSK  BIT(RCU_APB1RST_WWDTEN_POS)

#define  RCU_APB1RST_BS16T1EN_POS  4U 
#define  RCU_APB1RST_BS16T1EN_MSK  BIT(RCU_APB1RST_BS16T1EN_POS)

#define  RCU_APB1RST_GP16C4T3EN_POS  3U 
#define  RCU_APB1RST_GP16C4T3EN_MSK  BIT(RCU_APB1RST_GP16C4T3EN_POS)

#define  RCU_APB1RST_GP16C4T2EN_POS  2U 
#define  RCU_APB1RST_GP16C4T2EN_MSK  BIT(RCU_APB1RST_GP16C4T2EN_POS)

#define  RCU_APB1RST_GP16C4T1EN_POS  1U 
#define  RCU_APB1RST_GP16C4T1EN_MSK  BIT(RCU_APB1RST_GP16C4T1EN_POS)

#define  RCU_APB1RST_GP32C4T1EN_POS  0U 
#define  RCU_APB1RST_GP32C4T1EN_MSK  BIT(RCU_APB1RST_GP32C4T1EN_POS)

/****************** Bit definition for RCU_APB2RST register ************************/

#define  RCU_APB2RST_CMPEN_POS  23U 
#define  RCU_APB2RST_CMPEN_MSK  BIT(RCU_APB2RST_CMPEN_POS)

#define  RCU_APB2RST_GP16C2T4EN_POS  19U 
#define  RCU_APB2RST_GP16C2T4EN_MSK  BIT(RCU_APB2RST_GP16C2T4EN_POS)

#define  RCU_APB2RST_GP16C2T3EN_POS  18U 
#define  RCU_APB2RST_GP16C2T3EN_MSK  BIT(RCU_APB2RST_GP16C2T3EN_POS)

#define  RCU_APB2RST_GP16C2T2EN_POS  17U 
#define  RCU_APB2RST_GP16C2T2EN_MSK  BIT(RCU_APB2RST_GP16C2T2EN_POS)

#define  RCU_APB2RST_GP16C2T1EN_POS  16U 
#define  RCU_APB2RST_GP16C2T1EN_MSK  BIT(RCU_APB2RST_GP16C2T1EN_POS)

#define  RCU_APB2RST_UART1EN_POS  14U 
#define  RCU_APB2RST_UART1EN_MSK  BIT(RCU_APB2RST_UART1EN_POS)

#define  RCU_APB2RST_SPI1EN_POS  12U 
#define  RCU_APB2RST_SPI1EN_MSK  BIT(RCU_APB2RST_SPI1EN_POS)

#define  RCU_APB2RST_AD16C4T1EN_POS  11U 
#define  RCU_APB2RST_AD16C4T1EN_MSK  BIT(RCU_APB2RST_AD16C4T1EN_POS)

#define  RCU_APB2RST_ADCEN_POS  9U 
#define  RCU_APB2RST_ADCEN_MSK  BIT(RCU_APB2RST_ADCEN_POS)

/****************** Bit definition for RCU_AHBEN register ************************/

#define  RCU_AHBEN_GPDEN_POS  19U 
#define  RCU_AHBEN_GPDEN_MSK  BIT(RCU_AHBEN_GPDEN_POS)

#define  RCU_AHBEN_GPCEN_POS  18U 
#define  RCU_AHBEN_GPCEN_MSK  BIT(RCU_AHBEN_GPCEN_POS)

#define  RCU_AHBEN_GPBEN_POS  17U 
#define  RCU_AHBEN_GPBEN_MSK  BIT(RCU_AHBEN_GPBEN_POS)

#define  RCU_AHBEN_GPAEN_POS  16U 
#define  RCU_AHBEN_GPAEN_MSK  BIT(RCU_AHBEN_GPAEN_POS)

#define  RCU_AHBEN_HDIVEN_POS  15U 
#define  RCU_AHBEN_HDIVEN_MSK  BIT(RCU_AHBEN_HDIVEN_POS)

#define  RCU_AHBEN_USBEN_POS  14U 
#define  RCU_AHBEN_USBEN_MSK  BIT(RCU_AHBEN_USBEN_POS)

#define  RCU_AHBEN_AESEN_POS  13U 
#define  RCU_AHBEN_AESEN_MSK  BIT(RCU_AHBEN_AESEN_POS)

#define  RCU_AHBEN_CRCEN_POS  12U 
#define  RCU_AHBEN_CRCEN_MSK  BIT(RCU_AHBEN_CRCEN_POS)

#define  RCU_AHBEN_RTCEN_POS  6U 
#define  RCU_AHBEN_RTCEN_MSK  BIT(RCU_AHBEN_RTCEN_POS)

#define  RCU_AHBEN_DMA1EN_POS  0U 
#define  RCU_AHBEN_DMA1EN_MSK  BIT(RCU_AHBEN_DMA1EN_POS)

/****************** Bit definition for RCU_APB1EN register ************************/

#define  RCU_APB1EN_DACEN_POS  23U 
#define  RCU_APB1EN_DACEN_MSK  BIT(RCU_APB1EN_DACEN_POS)

#define  RCU_APB1EN_I2C2EN_POS  22U 
#define  RCU_APB1EN_I2C2EN_MSK  BIT(RCU_APB1EN_I2C2EN_POS)

#define  RCU_APB1EN_I2C1EN_POS  21U 
#define  RCU_APB1EN_I2C1EN_MSK  BIT(RCU_APB1EN_I2C1EN_POS)

#define  RCU_APB1EN_SUART2EN_POS  20U 
#define  RCU_APB1EN_SUART2EN_MSK  BIT(RCU_APB1EN_SUART2EN_POS)

#define  RCU_APB1EN_SUART1EN_POS  19U 
#define  RCU_APB1EN_SUART1EN_MSK  BIT(RCU_APB1EN_SUART1EN_POS)

#define  RCU_APB1EN_UART3EN_POS  18U 
#define  RCU_APB1EN_UART3EN_MSK  BIT(RCU_APB1EN_UART3EN_POS)

#define  RCU_APB1EN_UART2EN_POS  17U 
#define  RCU_APB1EN_UART2EN_MSK  BIT(RCU_APB1EN_UART2EN_POS)

#define  RCU_APB1EN_SPI2EN_POS  14U 
#define  RCU_APB1EN_SPI2EN_MSK  BIT(RCU_APB1EN_SPI2EN_POS)

#define  RCU_APB1EN_IWDTEN_POS  12U 
#define  RCU_APB1EN_IWDTEN_MSK  BIT(RCU_APB1EN_IWDTEN_POS)

#define  RCU_APB1EN_WWDTEN_POS  11U 
#define  RCU_APB1EN_WWDTEN_MSK  BIT(RCU_APB1EN_WWDTEN_POS)

#define  RCU_APB1EN_BS16T1EN_POS  4U 
#define  RCU_APB1EN_BS16T1EN_MSK  BIT(RCU_APB1EN_BS16T1EN_POS)

#define  RCU_APB1EN_GP16C4T3EN_POS  3U 
#define  RCU_APB1EN_GP16C4T3EN_MSK  BIT(RCU_APB1EN_GP16C4T3EN_POS)

#define  RCU_APB1EN_GP16C4T2EN_POS  2U 
#define  RCU_APB1EN_GP16C4T2EN_MSK  BIT(RCU_APB1EN_GP16C4T2EN_POS)

#define  RCU_APB1EN_GP16C4T1EN_POS  1U 
#define  RCU_APB1EN_GP16C4T1EN_MSK  BIT(RCU_APB1EN_GP16C4T1EN_POS)

#define  RCU_APB1EN_GP32C4T1EN_POS  0U 
#define  RCU_APB1EN_GP32C4T1EN_MSK  BIT(RCU_APB1EN_GP32C4T1EN_POS)

/****************** Bit definition for RCU_APB2EN register ************************/

#define  RCU_APB2EN_CMPEN_POS  23U 
#define  RCU_APB2EN_CMPEN_MSK  BIT(RCU_APB2EN_CMPEN_POS)

#define  RCU_APB2EN_GP16C2T4EN_POS  19U 
#define  RCU_APB2EN_GP16C2T4EN_MSK  BIT(RCU_APB2EN_GP16C2T4EN_POS)

#define  RCU_APB2EN_GP16C2T3EN_POS  18U 
#define  RCU_APB2EN_GP16C2T3EN_MSK  BIT(RCU_APB2EN_GP16C2T3EN_POS)

#define  RCU_APB2EN_GP16C2T2EN_POS  17U 
#define  RCU_APB2EN_GP16C2T2EN_MSK  BIT(RCU_APB2EN_GP16C2T2EN_POS)

#define  RCU_APB2EN_GP16C2T1EN_POS  16U 
#define  RCU_APB2EN_GP16C2T1EN_MSK  BIT(RCU_APB2EN_GP16C2T1EN_POS)

#define  RCU_APB2EN_UART1EN_POS  14U 
#define  RCU_APB2EN_UART1EN_MSK  BIT(RCU_APB2EN_UART1EN_POS)

#define  RCU_APB2EN_SPI1EN_POS  12U 
#define  RCU_APB2EN_SPI1EN_MSK  BIT(RCU_APB2EN_SPI1EN_POS)

#define  RCU_APB2EN_AD16C4T1EN_POS  11U 
#define  RCU_APB2EN_AD16C4T1EN_MSK  BIT(RCU_APB2EN_AD16C4T1EN_POS)

#define  RCU_APB2EN_ADCEN_POS  9U 
#define  RCU_APB2EN_ADCEN_MSK  BIT(RCU_APB2EN_ADCEN_POS)

/****************** Bit definition for RCU_AHBSL register ************************/

#define  RCU_AHBSL_GPDEN_POS  19U 
#define  RCU_AHBSL_GPDEN_MSK  BIT(RCU_AHBSL_GPDEN_POS)

#define  RCU_AHBSL_GPCEN_POS  18U 
#define  RCU_AHBSL_GPCEN_MSK  BIT(RCU_AHBSL_GPCEN_POS)

#define  RCU_AHBSL_GPBEN_POS  17U 
#define  RCU_AHBSL_GPBEN_MSK  BIT(RCU_AHBSL_GPBEN_POS)

#define  RCU_AHBSL_GPAEN_POS  16U 
#define  RCU_AHBSL_GPAEN_MSK  BIT(RCU_AHBSL_GPAEN_POS)

#define  RCU_AHBSL_HDIVEN_POS  15U 
#define  RCU_AHBSL_HDIVEN_MSK  BIT(RCU_AHBSL_HDIVEN_POS)

#define  RCU_AHBSL_USBEN_POS  14U 
#define  RCU_AHBSL_USBEN_MSK  BIT(RCU_AHBSL_USBEN_POS)

#define  RCU_AHBSL_AESEN_POS  13U 
#define  RCU_AHBSL_AESEN_MSK  BIT(RCU_AHBSL_AESEN_POS)

#define  RCU_AHBSL_CRCEN_POS  12U 
#define  RCU_AHBSL_CRCEN_MSK  BIT(RCU_AHBSL_CRCEN_POS)

#define  RCU_AHBSL_RTCEN_POS  6U 
#define  RCU_AHBSL_RTCEN_MSK  BIT(RCU_AHBSL_RTCEN_POS)

#define  RCU_AHBSL_DMA1EN_POS  0U 
#define  RCU_AHBSL_DMA1EN_MSK  BIT(RCU_AHBSL_DMA1EN_POS)

/****************** Bit definition for RCU_APB1SL register ************************/

#define  RCU_APB1SL_DACEN_POS  23U 
#define  RCU_APB1SL_DACEN_MSK  BIT(RCU_APB1SL_DACEN_POS)

#define  RCU_APB1SL_I2C2EN_POS  22U 
#define  RCU_APB1SL_I2C2EN_MSK  BIT(RCU_APB1SL_I2C2EN_POS)

#define  RCU_APB1SL_I2C1EN_POS  21U 
#define  RCU_APB1SL_I2C1EN_MSK  BIT(RCU_APB1SL_I2C1EN_POS)

#define  RCU_APB1SL_SUART2EN_POS  20U 
#define  RCU_APB1SL_SUART2EN_MSK  BIT(RCU_APB1SL_SUART2EN_POS)

#define  RCU_APB1SL_SUART1EN_POS  19U 
#define  RCU_APB1SL_SUART1EN_MSK  BIT(RCU_APB1SL_SUART1EN_POS)

#define  RCU_APB1SL_UART3EN_POS  18U 
#define  RCU_APB1SL_UART3EN_MSK  BIT(RCU_APB1SL_UART3EN_POS)

#define  RCU_APB1SL_UART2EN_POS  17U 
#define  RCU_APB1SL_UART2EN_MSK  BIT(RCU_APB1SL_UART2EN_POS)

#define  RCU_APB1SL_SPI2EN_POS  14U 
#define  RCU_APB1SL_SPI2EN_MSK  BIT(RCU_APB1SL_SPI2EN_POS)

#define  RCU_APB1SL_IWDTEN_POS  12U 
#define  RCU_APB1SL_IWDTEN_MSK  BIT(RCU_APB1SL_IWDTEN_POS)

#define  RCU_APB1SL_WWDTEN_POS  11U 
#define  RCU_APB1SL_WWDTEN_MSK  BIT(RCU_APB1SL_WWDTEN_POS)

#define  RCU_APB1SL_BS16T1EN_POS  4U 
#define  RCU_APB1SL_BS16T1EN_MSK  BIT(RCU_APB1SL_BS16T1EN_POS)

#define  RCU_APB1SL_GP16C4T3EN_POS  3U 
#define  RCU_APB1SL_GP16C4T3EN_MSK  BIT(RCU_APB1SL_GP16C4T3EN_POS)

#define  RCU_APB1SL_GP16C4T2EN_POS  2U 
#define  RCU_APB1SL_GP16C4T2EN_MSK  BIT(RCU_APB1SL_GP16C4T2EN_POS)

#define  RCU_APB1SL_GP16C4T1EN_POS  1U 
#define  RCU_APB1SL_GP16C4T1EN_MSK  BIT(RCU_APB1SL_GP16C4T1EN_POS)

#define  RCU_APB1SL_GP32C4T1EN_POS  0U 
#define  RCU_APB1SL_GP32C4T1EN_MSK  BIT(RCU_APB1SL_GP32C4T1EN_POS)

/****************** Bit definition for RCU_APB2SL register ************************/

#define  RCU_APB2SL_CMPEN_POS  23U 
#define  RCU_APB2SL_CMPEN_MSK  BIT(RCU_APB2SL_CMPEN_POS)

#define  RCU_APB2SL_GP16C2T4EN_POS  19U 
#define  RCU_APB2SL_GP16C2T4EN_MSK  BIT(RCU_APB2SL_GP16C2T4EN_POS)

#define  RCU_APB2SL_GP16C2T3EN_POS  18U 
#define  RCU_APB2SL_GP16C2T3EN_MSK  BIT(RCU_APB2SL_GP16C2T3EN_POS)

#define  RCU_APB2SL_GP16C2T2EN_POS  17U 
#define  RCU_APB2SL_GP16C2T2EN_MSK  BIT(RCU_APB2SL_GP16C2T2EN_POS)

#define  RCU_APB2SL_GP16C2T1EN_POS  16U 
#define  RCU_APB2SL_GP16C2T1EN_MSK  BIT(RCU_APB2SL_GP16C2T1EN_POS)

#define  RCU_APB2SL_UART1EN_POS  14U 
#define  RCU_APB2SL_UART1EN_MSK  BIT(RCU_APB2SL_UART1EN_POS)

#define  RCU_APB2SL_SPI1EN_POS  12U 
#define  RCU_APB2SL_SPI1EN_MSK  BIT(RCU_APB2SL_SPI1EN_POS)

#define  RCU_APB2SL_AD16C4T1EN_POS  11U 
#define  RCU_APB2SL_AD16C4T1EN_MSK  BIT(RCU_APB2SL_AD16C4T1EN_POS)

#define  RCU_APB2SL_ADCEN_POS  9U 
#define  RCU_APB2SL_ADCEN_MSK  BIT(RCU_APB2SL_ADCEN_POS)

/****************** Bit definition for RCU_AHBDSL register ************************/

#define  RCU_AHBDSL_GPDEN_POS  19U 
#define  RCU_AHBDSL_GPDEN_MSK  BIT(RCU_AHBDSL_GPDEN_POS)

#define  RCU_AHBDSL_GPCEN_POS  18U 
#define  RCU_AHBDSL_GPCEN_MSK  BIT(RCU_AHBDSL_GPCEN_POS)

#define  RCU_AHBDSL_GPBEN_POS  17U 
#define  RCU_AHBDSL_GPBEN_MSK  BIT(RCU_AHBDSL_GPBEN_POS)

#define  RCU_AHBDSL_GPAEN_POS  16U 
#define  RCU_AHBDSL_GPAEN_MSK  BIT(RCU_AHBDSL_GPAEN_POS)

#define  RCU_AHBDSL_HDIVEN_POS  15U 
#define  RCU_AHBDSL_HDIVEN_MSK  BIT(RCU_AHBDSL_HDIVEN_POS)

#define  RCU_AHBDSL_USBEN_POS  14U 
#define  RCU_AHBDSL_USBEN_MSK  BIT(RCU_AHBDSL_USBEN_POS)

#define  RCU_AHBDSL_AESEN_POS  13U 
#define  RCU_AHBDSL_AESEN_MSK  BIT(RCU_AHBDSL_AESEN_POS)

#define  RCU_AHBDSL_CRCEN_POS  12U 
#define  RCU_AHBDSL_CRCEN_MSK  BIT(RCU_AHBDSL_CRCEN_POS)

#define  RCU_AHBDSL_RTCEN_POS  6U 
#define  RCU_AHBDSL_RTCEN_MSK  BIT(RCU_AHBDSL_RTCEN_POS)

#define  RCU_AHBDSL_DMA1EN_POS  0U 
#define  RCU_AHBDSL_DMA1EN_MSK  BIT(RCU_AHBDSL_DMA1EN_POS)

/****************** Bit definition for RCU_APB1DSL register ************************/

#define  RCU_APB1DSL_DACEN_POS  23U 
#define  RCU_APB1DSL_DACEN_MSK  BIT(RCU_APB1DSL_DACEN_POS)

#define  RCU_APB1DSL_I2C2EN_POS  22U 
#define  RCU_APB1DSL_I2C2EN_MSK  BIT(RCU_APB1DSL_I2C2EN_POS)

#define  RCU_APB1DSL_I2C1EN_POS  21U 
#define  RCU_APB1DSL_I2C1EN_MSK  BIT(RCU_APB1DSL_I2C1EN_POS)

#define  RCU_APB1DSL_SUART2EN_POS  20U 
#define  RCU_APB1DSL_SUART2EN_MSK  BIT(RCU_APB1DSL_SUART2EN_POS)

#define  RCU_APB1DSL_SUART1EN_POS  19U 
#define  RCU_APB1DSL_SUART1EN_MSK  BIT(RCU_APB1DSL_SUART1EN_POS)

#define  RCU_APB1DSL_UART3EN_POS  18U 
#define  RCU_APB1DSL_UART3EN_MSK  BIT(RCU_APB1DSL_UART3EN_POS)

#define  RCU_APB1DSL_UART2EN_POS  17U 
#define  RCU_APB1DSL_UART2EN_MSK  BIT(RCU_APB1DSL_UART2EN_POS)

#define  RCU_APB1DSL_SPI2EN_POS  14U 
#define  RCU_APB1DSL_SPI2EN_MSK  BIT(RCU_APB1DSL_SPI2EN_POS)

#define  RCU_APB1DSL_IWDTEN_POS  12U 
#define  RCU_APB1DSL_IWDTEN_MSK  BIT(RCU_APB1DSL_IWDTEN_POS)

#define  RCU_APB1DSL_WWDTEN_POS  11U 
#define  RCU_APB1DSL_WWDTEN_MSK  BIT(RCU_APB1DSL_WWDTEN_POS)

#define  RCU_APB1DSL_BS16T1EN_POS  4U 
#define  RCU_APB1DSL_BS16T1EN_MSK  BIT(RCU_APB1DSL_BS16T1EN_POS)

#define  RCU_APB1DSL_GP16C4T3EN_POS  3U 
#define  RCU_APB1DSL_GP16C4T3EN_MSK  BIT(RCU_APB1DSL_GP16C4T3EN_POS)

#define  RCU_APB1DSL_GP16C4T2EN_POS  2U 
#define  RCU_APB1DSL_GP16C4T2EN_MSK  BIT(RCU_APB1DSL_GP16C4T2EN_POS)

#define  RCU_APB1DSL_GP16C4T1EN_POS  1U 
#define  RCU_APB1DSL_GP16C4T1EN_MSK  BIT(RCU_APB1DSL_GP16C4T1EN_POS)

#define  RCU_APB1DSL_GP32C4T1EN_POS  0U 
#define  RCU_APB1DSL_GP32C4T1EN_MSK  BIT(RCU_APB1DSL_GP32C4T1EN_POS)

/****************** Bit definition for RCU_APB2DSL register ************************/

#define  RCU_APB2DSL_CMPEN_POS  23U 
#define  RCU_APB2DSL_CMPEN_MSK  BIT(RCU_APB2DSL_CMPEN_POS)

#define  RCU_APB2DSL_GP16C2T4EN_POS  19U 
#define  RCU_APB2DSL_GP16C2T4EN_MSK  BIT(RCU_APB2DSL_GP16C2T4EN_POS)

#define  RCU_APB2DSL_GP16C2T3EN_POS  18U 
#define  RCU_APB2DSL_GP16C2T3EN_MSK  BIT(RCU_APB2DSL_GP16C2T3EN_POS)

#define  RCU_APB2DSL_GP16C2T2EN_POS  17U 
#define  RCU_APB2DSL_GP16C2T2EN_MSK  BIT(RCU_APB2DSL_GP16C2T2EN_POS)

#define  RCU_APB2DSL_GP16C2T1EN_POS  16U 
#define  RCU_APB2DSL_GP16C2T1EN_MSK  BIT(RCU_APB2DSL_GP16C2T1EN_POS)

#define  RCU_APB2DSL_UART1EN_POS  14U 
#define  RCU_APB2DSL_UART1EN_MSK  BIT(RCU_APB2DSL_UART1EN_POS)

#define  RCU_APB2DSL_SPI1EN_POS  12U 
#define  RCU_APB2DSL_SPI1EN_MSK  BIT(RCU_APB2DSL_SPI1EN_POS)

#define  RCU_APB2DSL_AD16C4T1EN_POS  11U 
#define  RCU_APB2DSL_AD16C4T1EN_MSK  BIT(RCU_APB2DSL_AD16C4T1EN_POS)

#define  RCU_APB2DSL_ADCEN_POS  9U 
#define  RCU_APB2DSL_ADCEN_MSK  BIT(RCU_APB2DSL_ADCEN_POS)

typedef struct
{
  __IO uint32_t CON;
  __IO uint32_t CFG;
  __IO uint32_t STCALIB;
  __IO uint32_t PSCK;
  __IO uint32_t AHBRST;
  __IO uint32_t APB1RST;
  __IO uint32_t APB2RST;
  __IO uint32_t AHBEN;
  __IO uint32_t APB1EN;
  __IO uint32_t APB2EN;
  __IO uint32_t AHBSL;
  __IO uint32_t APB1SL;
  __IO uint32_t APB2SL;
  __IO uint32_t AHBDSL;
  __IO uint32_t APB1DSL;
  __IO uint32_t APB2DSL;
} RCU_TypeDef;





#endif
